package com.wangshang.team.order.po;

/**
 * AbstractTeamShopOrderId entity provides the base persistence definition of
 * the TeamShopOrderId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractTeamShopOrderId implements java.io.Serializable {

	// Fields

	private String teamOrderId;
	private String userIdentify;

	// Constructors

	/** default constructor */
	public AbstractTeamShopOrderId() {
	}

	/** full constructor */
	public AbstractTeamShopOrderId(String teamOrderId, String userIdentify) {
		this.teamOrderId = teamOrderId;
		this.userIdentify = userIdentify;
	}

	// Property accessors

	public String getTeamOrderId() {
		return this.teamOrderId;
	}

	public void setTeamOrderId(String teamOrderId) {
		this.teamOrderId = teamOrderId;
	}

	public String getUserIdentify() {
		return this.userIdentify;
	}

	public void setUserIdentify(String userIdentify) {
		this.userIdentify = userIdentify;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractTeamShopOrderId))
			return false;
		AbstractTeamShopOrderId castOther = (AbstractTeamShopOrderId) other;

		return ((this.getTeamOrderId() == castOther.getTeamOrderId()) || (this
				.getTeamOrderId() != null
				&& castOther.getTeamOrderId() != null && this.getTeamOrderId()
				.equals(castOther.getTeamOrderId())))
				&& ((this.getUserIdentify() == castOther.getUserIdentify()) || (this
						.getUserIdentify() != null
						&& castOther.getUserIdentify() != null && this
						.getUserIdentify().equals(castOther.getUserIdentify())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTeamOrderId() == null ? 0 : this.getTeamOrderId()
						.hashCode());
		result = 37
				* result
				+ (getUserIdentify() == null ? 0 : this.getUserIdentify()
						.hashCode());
		return result;
	}

}